<template>
  <el-dialog
    title="选择客户单位"
    :visible.sync="visible"
    width="700px"
    :before-close="handleClose"
  >
    <div class="project-list"></div>
    <div slot="footer">
      <el-button @click="visible = false">取 消</el-button>
      <el-button type="primary" @click="handleConfirm">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>
export default {
  props: {
    visible: {
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {};
  },
  methods: {
    handleClose() {
      this.$emit("update:visible", false);
    },
    handleConfirm() {
      this.$emit("confirm");
      this.handleClose();
    },
  },
};
</script>

<style lang="scss" scoped>
.project-list {
  height: 500px;
}
</style>
